home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / a-retide.ads < prev    next >
Text File  |  1996-01-30  |  2KB  |  41 lines

  1. -------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                 GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS               --
  4. --                                                                          --
  5. --                   A D A . R E A L _ T I M E . D E L A Y S                --
  6. --                                                                          --
  7. --                                  S p e c                                 --
  8. --                                                                          --
  9. --                             $Revision: 1.9 $                             --
  10. --                                                                          --
  11. --       Copyright (c) 1991,1992,1993,1994, FSU, All Rights Reserved        --
  12. --                                                                          --
  13. -- GNARL is free software; you can redistribute it  and/or modify it  under --
  14. -- terms  of  the  GNU  Library General Public License  as published by the --
  15. -- Free Software  Foundation;  either version 2, or (at  your  option)  any --
  16. -- later  version.  GNARL is distributed  in the hope that  it will be use- --
  17. -- ful, but but WITHOUT ANY WARRANTY;  without even the implied warranty of --
  18. -- MERCHANTABILITY  or  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Gen- --
  19. -- eral Library Public License  for more details.  You should have received --
  20. -- a  copy of the GNU Library General Public License along with GNARL;  see --
  21. -- file COPYING.LIB.  If not,  write to the  Free Software Foundation,  675 --
  22. -- Mass Ave, Cambridge, MA 02139, USA.                                      --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26. --  Implements Real_Time.Time absolute delays using protected objects
  27.  
  28. package Ada.Real_Time.Delays is
  29.  
  30.    protected Delay_Object is
  31.       pragma Priority (System.Priority'Last);
  32.       entry Wait (TS : Time_Span);
  33.    end Delay_Object;
  34.  
  35.    protected Delay_Until_Object is
  36.       pragma Priority (System.Priority'Last);
  37.       entry Wait (T : Time);
  38.    end Delay_Until_Object;
  39.  
  40. end Ada.Real_Time.Delays;
  41.